package com.nervenets.web.hibernate.domain;

import com.nervenets.web.hibernate.DomainObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.List;

/**
 * 反馈
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Feedback extends DomainObject {
    private long userId;
    @Column(columnDefinition = "text")
    private String content;
    @Type(type = "com.nervenets.web.adapter.jsonType.StringArrayJson")
    @Column(columnDefinition = "text")
    private List<String> pictures;
    @Column(columnDefinition = "text")
    private String reply;
    private int replyTime;
}
